package com.qiandao.xuexitong.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 创建一键签到任务DTO
 */
@Data
public class CreateQuickAttendanceTaskDTO {
    
    @NotNull(message = "教室ID不能为空")
    private Long classroomId;
    
    @NotNull(message = "签到标题不能为空")
    private String title;
    
    @NotNull(message = "开始时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;
    
    @NotNull(message = "结束时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;
} 